package com.qf.test;

import com.qf.config.SpringConfig;
import com.qf.pojo.Project;
import com.qf.service.ProjectService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * @Description: 公用常量
 * @Data: 2022/9/2 16:17
 * @Pacakge: com.qf.test
 * @ClassName: Demo
 * @Author: fan
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class Demo {
    @Autowired
    private ProjectService projectService;
    @Test
    public void testFindAllProject(){
        List<Project> allProject = projectService.findAllProject();
        allProject.stream().forEach(o-> System.out.println(o));
    }
}
